// 文字居中
<template>
<p>使用 <code>center</code> 属性让文字水平居中。</p>
  <el-button plain @click="openCenter">Centered text</el-button>
</template>

<script lang="ts" setup>
import { ElMessage } from 'element-plus'

const openCenter = () => {
  ElMessage({
    showClose: true,
    message: 'Centered text',
    center: true,
  })
}
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>